set(LOCAL_MODULE libosi)

# TODO(mcchou): Remove socket_utils sources after platform specific
# dependencies are abstracted.
set(btosiCommonSrc
    src/alarm.c
    src/allocation_tracker.c
    src/allocator.c
    src/array.c
    src/buffer.c 
    src/compat.c 
    src/config.c 
    src/data_dispatcher.c 
    src/eager_reader.c 
    src/fixed_queue.c 
    src/future.c 
    src/hash_functions.c 
    src/hash_map.c 
    src/hash_map_utils.c 
    src/list.c 
    src/non_repeating_timer.c 
    src/reactor.c 
    src/ringbuffer.c 
    src/semaphore.c 
    src/socket.c 
    src/socket_utils/socket_local_client.c 
    src/socket_utils/socket_local_server.c 
    src/thread.c
)    

include_directories(
    $(CMAKE_CURRENT_SOURCE_DIR)/include 
    $(CMAKE_CURRENT_SOURCE_DIR)/../utils/include
    $(CMAKE_CURRENT_SOURCE_DIR)/../include
    $(CMAKE_CURRENT_SOURCE_DIR)/..
)

# build static library
add_library(${LOCAL_MODULE} STATIC ${btosiCommonSrc})
set_target_properties(${LOCAL_MODULE} PROPERTIES PREFIX "")

